package com.xcc.commandpattern.demo02;

/**
 * @Description: CeilingFan
 * @Author xiechuang
 * @Date 2022/9/8
 */
public class CeilingFan {

    String description;

    public CeilingFan(String description) {
        this.description = description;
    }

    public void on() {
        System.out.println(description + " CeilingFan is On Hight");
    }

    public void off() {
        System.out.println(description + " CeilingFan is Off");
    }

}
